#include <iostream>
#include <vector>

#include "InitializationList.h"

int main()
{
    InitializationList temp1{}; // 类的初始化
    InitializationList temp2{temp1}; // 拷贝构造初始化
    InitializationList temp3{"Aiye",12}; // 重载初始化

    // 不建议使用这种写法，在不同的环境下代表的含义不同在linux环境下，则会先用参数构造一个临时对象然后再拷贝给temp4
    InitializationList temp4 = {"Aiye",12};
    std::vector<InitializationList> vecTemp{{"Aiye",12},{"Aiyea" ,21}};

    int nArr[] {1,2,3,4,5}; // 初始化数组

    auto pArr = new int{12}; // 初始化指针
    delete pArr;

    pArr = new int[]{1,2,3}; // 初始化指针数组
    delete pArr;

    return 0;
}
